import React from 'react';
import { BrowserRouter,Switch,Route,Redirect} from 'react-router-dom'
import Home from './Pages/home/index'
import Email from './Pages/home/Email/index.jsx'
import AppCom from '../src/Pages/home/Appcom/index'
import ParentToparams from './Pages/parentToparams/Parent'
import Continer from './Pages/Error/Continer'
function App() {
  return (
    <BrowserRouter>
      <div className="App">
        <Switch>
            <Home>
               <Switch>
                    <Route  path='/layout/email' component= {Email} ></Route>
                    <Route  path='/layout/app' component= {AppCom} ></Route>
                    <Route  path='/layout/params' component= {ParentToparams} ></Route>
                    <Route  path='/layout/error' component= {Continer} ></Route>
                    <Redirect exact from="/" to="/layout/email"/>
               </Switch>
            </Home>
        </Switch>
      </div>
    </BrowserRouter>
  );
}

export default App;
